CC = gcc
PROGRAM = thread3 thread4 upper

all : ${PROGRAM}

thread3 : thread3.o
	${CC} -o thread3 thread3.o -lpthread
thread4 : thread4.o
	${CC} -o thread4 thread4.o -lpthread
upper : upper.o
	${CC} -o upper upper.o

thread3.o : thread3.c
thread4.o : thread4.c
upper.o : upper.c

clean :
	rm *.o
